┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/doc/perl-HTTP-Tiny/eg
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: mirror.pl
#!/usr/bin/perl use strict; use warnings; use HTTP::Tiny; my $url = shift(@ARGV) || 'http://example.com'; my $file = shift(@ARGV) || 'example.output'; my $response = HTTP::Tiny->new->mirror($url, $file); print "$response->{status} $response->{reason}\n"; while (my ($k, $v) = each %{$response->{headers}}) { for (ref $v eq 'ARRAY' ? @$v : $v) { print "$k: $_\n"; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 get.pl
PL
395 B
2023-07-11 12:53
EDIT
📄 mirror.pl
PL
392 B
2023-07-11 12:53
EDIT
📄 post.pl
PL
568 B
2023-07-11 12:53
EDIT